

use crosssection

drop if energy==. | forest==. | mineral==.

replace natural_pc=. if natural_pc==0
replace produced_pc=. if produced_pc==0
replace human_pc=. if human_pc==0

gen loggdppc=log(gdppc)
gen logdensity=log(density)
gen lognatural=log(natural_pc)
gen logproduced=log(produced_pc)
gen loghuman=log(human_pc)

sum sum energy forest mineral
sum sum energy forest mineral if east_asia==1 
sum sum energy forest mineral if europe_ca==1
sum sum energy forest mineral if latin==1
sum sum energy forest mineral if mena==1
sum sum energy forest mineral if north_america==1
sum sum energy forest mineral if south_asia==1
sum sum energy forest mineral if sub_saharan==1

drop if xconst<0

gen constraint=(xconst==7)

sum sum energy forest mineral
sum sum energy forest mineral if east_asia==1 
sum sum energy forest mineral if europe_ca==1
sum sum energy forest mineral if latin==1
sum sum energy forest mineral if mena==1
sum sum energy forest mineral if north_america==1
sum sum energy forest mineral if south_asia==1
sum sum energy forest mineral if sub_saharan==1


sum sum energy forest mineral constraint avg_war00 avg_civilwar75 efindex v2xcl_prpty gdppc density natural_pc produced_pc human_pc

reg sum constraint efindex v2xcl_prpty loggdppc logdensity, robust
reg sum constraint efindex v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman, robust

reg sum avg_war00 avg_civilwar75 v2xcl_prpty loggdppc logdensity, robust
reg sum avg_war00 avg_civilwar75 v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman, robust


reg energy constraint efindex v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman, robust
reg forest constraint efindex v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman, robust
reg mineral constraint efindex v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman, robust


log close
